STICK Function ---------------------------------------------------------------------------- Action Returns joystick coordinates. Syntax STICK( n%) Remarks The argument n% is a numeric expression whose value is an unsigned integer from 0 to 3 that indicates which joystick coordinate value to return. ----------------------------------------------------------------------------- Argument Value returned ---------------------------------------------------------------------------- 0 Indicates the x coordinate of joystick A. 1 Indicates the y coordinate of joystick A. 2 Indicates the x coordinate of joystick B. 3 Indicates the y coordinate of joystick B. Joystick coordinates range from 1 to 200 in both directions. You must use STICK(0) before you use STICK(1), STICK(2), or STICK(3) because STICK(0) not only returns the x coordinate of joystick A, but also records the other joystick coordinates. These recorded coordinates are returned by calling STICK(1), STICK(2), or STICK(3). Note The STICK function is not available in OS-2 protected mode. Example See the STRIG statements programming example, which uses the STICK function.